﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using WebApplication2.Instrument;
using BLL;
using Model;

namespace Web
{
    public partial class WebForm3 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            if (TextBox1.Text.Trim() != "" && TextBox2.Text.Trim() != "")
            {
                if (UserinforManger.SelectAdmin(TextBox1.Text, TextBox2.Text) != null)
                {
                   
                    Label1.Text = Session["AName"].ToString();
                    Response.Redirect("index.aspx");

                }
                else
                {
                    Label1.Text = "账号密码错误！";
                }

            }
            else
            {
                Label1.Text = "账号密码错误！";
            }

        }
    }
}